<?php
require_once __DIR__ . '/init.php';

use sessions\AutoLogin;

if (isset($_SESSION['authenticated']) || isset($_SESSION['parsclick_auth'])) {
	
} else {
	$autologin = new AutoLogin($db);
	$autologin->checkCredentials();
	if (!isset($_SESSION['parsclick_auth'])) {
		echo "<script>top.window.location = 'login.php'</script>";
		//header('Location: index.php');//klopt
		//exit;
	}
}

?>
